package com.pm2.entity.customer;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicUpdate;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 公司
 * @author qin
 *
 */
@Entity
@Table(name="db_pm2_company")
@DynamicUpdate
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Company {
	
	// @Fields id : 公司主键
	@Id @Column(name="id")
	@GeneratedValue(strategy=GenerationType.AUTO)
	int id;	 
	
	// @Fields name : 公司名称
	String name;
	
	// @Fields addr : 公司地址
	String addr;
}
